QT += quick     \
      quickcontrols2        \
      remoteobjects     \
      sql       \
      concurrent        \
      serialport    \
      charts

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Refer to the documentation for the
# deprecated API to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_MESSAGELOGCONTEXT
DEFINES += QT_FORCE_ASSERTS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

VERSION = 1.0.0.2
RC_ICONS = bonder.ico

TRANSLATIONS = languagePackage/Bonder_chinese.ts languagePackage/Bonder_english.ts

SOURCES += \
        ../DriverRepos/Camera/baslercamera.cpp \
        ../DriverRepos/Camera/hikcamera.cpp \
        ../DriverRepos/Laser/htg1laser.cpp \
        ../DriverRepos/Laser/laserdriver.cpp \
        ../DriverRepos/LightSourceController/wordoplightsourcecontroller.cpp \
        ../DriverRepos/XtMotion/xtaxis.cpp \
        ../DriverRepos/XtMotion/xtcontrolcard.cpp \
        ../DriverRepos/XtMotion/xtdi.cpp \
        ../DriverRepos/XtMotion/xtdispenser.cpp \
        ../DriverRepos/XtMotion/xtdo.cpp \
        ../DriverRepos/XtMotion/xtmotionelementfactory.cpp \
        ../DriverRepos/XtMotion/xtvcm.cpp \
        ../WorkerRepos/PressureMonitor/pressuremonitor.cpp \
        Tray/traymap.cpp \
        bonderdispatcher.cpp \
        main.cpp \
        Vision/scvisionfactory.cpp \
        workers/BonderHead/bonderhead.cpp \
        workers/BonderWorkHolder/bonderworkholder.cpp \
        workers/BonderWorkHolder/postbonddataanalysis.cpp \
        workers/BonderWorkHolder/sensortrayconveyer.cpp \
        workers/DispenseModule/dispensehead.cpp \
        workers/DispenseModule/dispenseworkholder.cpp \
        workers/LensTrayModule/lenstraybuffer.cpp \
        workers/LensTrayModule/lenstrayloader.cpp \
        workers/LensTrayModule/lenstraymagazine.cpp \
        workers/SensorTrayElevator/sensortrayinputelevator.cpp \
        workers/SensorTrayElevator/sensortrayoutputelevator.cpp

RESOURCES += qml.qrc \
    ../CommonIcons/pics.qrc \
    ../QmlComponents/qmlcomponents.qrc \
    icons.qrc \
    languagepackage.qrc


INCLUDEPATH +=  ../UtilitiesLib      \
                ../SCMotionLib      \
                ../libs/motion_x64  \
                ../libs/hik/Includes    \
                ../libs/basler/include    \
                ../ThirdPartyLib/zmq    \
                ../libs/PacLib64bit     \
                ../libs/GtMotion_X64

LIBS += ../libs/motion_x64/MotionControlDll.lib     \
        ../libs/motion_x64/MotionControlExtendDll.lib   \
        ../libs/motion_x64/voice_motor_dll.lib  \
        ../libs/hik/lib/win64/MvCameraControl.lib   \
        ../libs/basler/lib/x64/PylonBase_v5_2.lib    \
        ../libs/basler/lib/x64/GCBase_MD_VC141_v3_1_Basler_pylon.lib    \
        ../libs/basler/lib/x64/GenApi_MD_VC141_v3_1_Basler_pylon.lib    \
        ../libs/basler/lib/x64/PylonUtility_v5_2.lib    \
        ../AdaptVisionLib/Release/AdaptVision.lib

INCLUDEPATH +=   ../Utilities     \
                 ../SCMotion      \
                 ../Utilities/configManager     \
                 ../SCMotion/MotionManager      \
                 ../SCVision    \
                 ../AdaptVision     \
                 ../DriverRepos     \
#                ../UtilitiesHeaders     \
#                ../SCMotionHeaders      \
#                ../UtilitiesHeaders/configManager     \
#                ../SCMotionHeaders/MotionManager    \


CONFIG(debug, debug|release){
    DESTDIR = ./Debug
    OBJECTS_DIR = ./Debug/Objs
    MOC_DIR = ./Debug/Mocs
    LIBS += ../SCMotionLib/Debug/SCMotion.lib
    LIBS += ../UtilitiesLib/Debug/utilities.lib
    LIBS += ../SCVisionLib/Debug/SCVision.lib
}else{
    DESTDIR = ./Release
    OBJECTS_DIR = ./Release/Objs
    MOC_DIR = ./Release/Mocs
    LIBS += ../SCMotionLib/Release/SCMotion.lib
    LIBS += ../UtilitiesLib/Release/utilities.lib
    LIBS += ../SCVisionLib/Release/SCVision.lib
}

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    ../DriverRepos/Camera/baslercamera.h \
    ../DriverRepos/Camera/hikcamera.h \
    ../DriverRepos/Laser/htg1laser.h \
    ../DriverRepos/Laser/laserconfig.h \
    ../DriverRepos/Laser/laserdriver.h \
    ../DriverRepos/LightSourceController/wordoplightsourcecontroller.h \
    ../DriverRepos/XtMotion/dummymotionfactory.h \
    ../DriverRepos/XtMotion/xtaxis.h \
    ../DriverRepos/XtMotion/xtcontrolcard.h \
    ../DriverRepos/XtMotion/xtdi.h \
    ../DriverRepos/XtMotion/xtdispenser.h \
    ../DriverRepos/XtMotion/xtdo.h \
    ../DriverRepos/XtMotion/xtmotionelementfactory.h \
    ../DriverRepos/XtMotion/xtvcm.h \
    ../DriverRepos/XtMotion/xtvcmconfig.h \
    ../WorkerRepos/PressureMonitor/pressuremonitor.h \
    Tray/lenstraymap.h \
    Tray/lenstraymaterialdata.h \
    Tray/magtraystate.h \
    Tray/materialdata.h \
    Tray/sensortraymap.h \
    Tray/sensortraymaterialdata.h \
    Tray/trayconfig.h \
    Tray/traymap.h \
    bonderbasicconfig.h \
    bonderdispatcher.h \
    namedefinition.h \
    Vision/scvisionfactory.h \
    workers/BonderHead/bonderhead.h \
    workers/BonderHead/bonderheadconfig.h \
    workers/BonderWorkHolder/bonderworkholder.h \
    workers/BonderWorkHolder/bonderworkholderconfig.h \
    workers/BonderWorkHolder/postbonddataanalysis.h \
    workers/BonderWorkHolder/sensortrayconveyer.h \
    workers/BonderWorkHolder/sensortrayconveyerconfig.h \
    workers/DispenseModule/dispensehead.h \
    workers/DispenseModule/dispenseheadconfig.h \
    workers/DispenseModule/dispenseworkholder.h \
    workers/DispenseModule/dispenseworkholderconfig.h \
    workers/LensTrayModule/lenstraybuffer.h \
    workers/LensTrayModule/lenstrayloader.h \
    workers/LensTrayModule/lenstraymagazine.h \
    workers/LensTrayModule/lenstraymoduleconfig.h \
    workers/LensTrayModule/lenstraymodulestate.h \
    workers/SensorTrayElevator/sensortrayelevatorconfig.h \
    workers/SensorTrayElevator/sensortrayinputelevator.h \
    workers/SensorTrayElevator/sensortrayoutputelevator.h \
    workers/workholderstate.h \

####### PAC VCM
#HEADERS += \
#    ../DriverRepos/PACMotion/pacvcm.h \
#    ../DriverRepos/PACMotion/pacvcmconfig.h
#SOURCES += \
#        ../DriverRepos/PACMotion/pacvcm.cpp
#LIBS += ../libs/PacLib64bit/PAC.lib


####### GT Motion
#SOURCES += \
#        ../DriverRepos/GTMotion/gtaxis.cpp \
#        ../DriverRepos/GTMotion/gtcontrolcard.cpp \
#        ../DriverRepos/GTMotion/gtdi.cpp \
#        ../DriverRepos/GTMotion/gtdo.cpp \
#        ../DriverRepos/GTMotion/gtmotionelementfactory.cpp
#HEADERS += \
#    ../DriverRepos/GTMotion/gtaxis.h \
#    ../DriverRepos/GTMotion/gtaxisconfig.h \
#    ../DriverRepos/GTMotion/gtcontrolcard.h \
#    ../DriverRepos/GTMotion/gtcontrolcardconfig.h \
#    ../DriverRepos/GTMotion/gtdi.h \
#    ../DriverRepos/GTMotion/gtdo.h \
#    ../DriverRepos/GTMotion/gtioconfig.h \
#    ../DriverRepos/GTMotion/gtresulthandler.h \
#    ../DriverRepos/GTMotion/gtmotionelementfactory.h
#LIBS += ../libs/GtMotion_X64/gts.lib

win32-msvc*:QMAKE_CXXFLAGS += /wd"4819"

